<template>
    <p>子元素</p>
    <slot :SonName="name">这是子组件默认的内容</slot>
</template>

<script>
export default{
    data(){
        return{
            name:'tom'
        }
    }
}

</script>